#include "stdafx.h"
#include "TempleMenu.h"
#include "base/Button.h"
#include "../../../EdgeGraphics/BitmapFont.h"

TempleMenu::TempleMenu(void)
{
	BitmapFont* font = new BitmapFont("Content/fonts/arial_small.fnt");
	build_button = new Button("Content/Textures/button.mat", "Build");
	build_button->setPosition(Vector2(10.f, 100.f));
	build_button->setFont(font);
	build_button->setTextColor(vector_4::black);
	
	society_button = new Button("Content/Textures/button.mat", "Society");
	society_button->setPosition(Vector2(10.f, 200.f));
	society_button->setFont(font);
	society_button->setTextColor(vector_4::black);

	war_button = new Button("Content/Textures/button.mat", "War");
	war_button->setPosition(Vector2(10.f, 300.f));
	war_button->setFont(font);
	war_button->setTextColor(vector_4::black);

	elements.push_back(build_button);
	elements.push_back(society_button);
	elements.push_back(war_button);
}

/*virtual*/ TempleMenu::~TempleMenu(void)
{
	delete build_button->getFont();
}

/*virtual*/ void TempleMenu::Update(float dt) /*override*/
{
	Menu::Update(dt);
}

/*virtual*/ void TempleMenu::Draw(void) /*override*/
{
	Menu::Draw();
}